import { createSlice } from "@reduxjs/toolkit";
import img1 from "../assets/1.png"

const advatarSlice = createSlice({
    name: 'advatar',
    initialState: {
        pic: img1,
        tk: 1
    },
    reducers: {
        updatePic: (state,action)=>{
            return{
                ...state,
                pic: action.payload
            }
        }
    }
})

export const {updatePic} = advatarSlice.actions;
export default advatarSlice.reducer;